package br.com.android.financas;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;

public class BootStarter extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		SharedPreferences preference = PreferenceManager.getDefaultSharedPreferences(context);

		if(preference.getBoolean("atualizar", false)){
			Log.e("ATUALIZAR JUROS", "SIM");
			Intent myIntent = new Intent(context, AtualizaPoupancaServico.class);
			context.startService(myIntent);
		}
	}
}